---
title: 'Branch Rules'
tags: 'github'
description: ''
---

Default settings for GitHub Repository Branches

## General Settings

Settings > General

<CloudinaryImg
  mdx
  publicId='theodorusclarence/shorts/github/branch-rules/rule-1'
  alt='rule-1'
  width={1594}
  height={1606}
/>

## Branch Protection Rules

Settings > Branches

1. Add rule

   <CloudinaryImg
     mdx
     publicId='theodorusclarence/shorts/github/branch-rules/rule-2'
     alt='rule-2'
     width={2236}
     height={730}
   />

2. Check these settings

   <CloudinaryImg
     mdx
     publicId='theodorusclarence/shorts/github/branch-rules/rule-3'
     alt='rule-3'
     width={1616}
     height={3834}
   />
